<?php
/**
 * Created by PhpStorm.
 * User: l-ht
 * Date: 2018/10/24
 * Time: 17:34
 */

namespace app\index\controller;


class Git
{
    public function pull()
    {
        echo date("Y-m-d H:i:s");
        $result = shell_exec("cd /www/wwwroot/forum; git pull 2<&1");
        var_dump($result);
    }
}